package com.unknowpupil.design.builder;

/**
 * @Description: <br/>
 * <p>
 * 神州飞船装配器
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/24 20:56
 * @Classname: DivineLandShipDirector
 * @Version: 1.0
 */
public class DivineLandShipDirector implements AirShipDirector {
    private AirShipBuilder builder;

    public DivineLandShipDirector(AirShipBuilder builder) {
        this.builder = builder;
    }

    @Override
    public AirShip directAirShip() {
        Engine engine = builder.builderEngine();
        EscapeTower escapeTower = builder.builderEscapeTower();
        OrbitalModule orbitalModule = builder.builderOrbitalModule();
        return new AirShip(engine, escapeTower, orbitalModule);
    }
}
